package org.sgx.gwtsjcl.client;

import com.google.gwt.core.client.JavaScriptObject;
/**
 * UTF-8 strings 
 * @author sg
 *
 */
public class CodecUtf8String extends JavaScriptObject {
protected CodecUtf8String(){}
/**
 * Convert from a bitArray to an UTF-8 string. 
 * 
 * @param arr
 * @return
 */
public native final String fromBits(BitArrayType arr)/*-{
	return this.fromBits(arr);
}-*/;

/**
 * Convert from an UTF-8 string to a bitArray. 
 * @param str
 * @return
 */
public native final BitArrayType toBits(String str)/*-{
	return this.toBits(str);
}-*/;

}
